home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK2.toast / Development Kits (Disc 2) / QuickTime™ IC SDK 1.01 / Sample Code / QTICSamplePanel / QTICSamplePanel.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-23  |  1.5 KB  |  79 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        QTICSamplePanle.h
  3.  
  4.     Contains:    Header for QTIC Sample Panel.
  5.  
  6.     Written by:    Dino Tang
  7.  
  8.     Copyright:    © 1996-1997 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <1>        04/25/97    DT        First created.
  13.  
  14.     To Do:
  15.  
  16. */
  17.  
  18. #ifndef __QTICSamplePanel__
  19. #define __QTICSamplePanel__
  20.  
  21. #ifndef __QTICPUBLICPANEL__
  22. #include <QTICPublicPanel.h>
  23. #endif
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29. #if GENERATINGPOWERPC
  30. #pragma options align=mac68k
  31. #endif
  32.  
  33. #ifdef __CFM68K__
  34. #pragma lib_export on
  35. #endif
  36.  
  37. /* ------------------------------------------------------------------------- */
  38.  
  39. #define        kQTICPanelVersion                0x00010001
  40.  
  41. #define        kDLOG_ABOUT                        -300
  42. #define        kSTR_MENUCONNECTED                -302
  43. #define        kSTR_MENUNOTCONNECTED            -303
  44.  
  45. //    Structs.
  46. typedef struct {
  47.     short                stuff;
  48. } SharedGlobals;
  49.  
  50. typedef struct    {                    
  51.     //    Component stuff
  52.     ComponentInstance    delegate;                //    keep track who we are delegating it to.
  53.     ComponentInstance    self;                    //    self instance needed if targeted.
  54.     ComponentInstance    controls;                //    need to know where controls component is.
  55.     QTICActionFilterWithRefConUPP    callback;
  56.     
  57.     Str255                menuStrConnected;
  58.     Str255                menuStrNotConnected;
  59.     WindowRef            window;
  60. } PrivateGlobals;
  61.  
  62. //    Function prototypes.
  63. pascal ComponentResult QTICSAMPLEPANEL(ComponentParameters *params,char **storage);
  64.  
  65. /* ------------------------------------------------------------------------- */
  66.  
  67. #ifdef __CFM68K__
  68. #pragma lib_export off
  69. #endif
  70.  
  71. #if GENERATINGPOWERPC
  72. #pragma options align=reset
  73. #endif
  74.  
  75. #ifdef __cplusplus
  76. }
  77. #endif
  78.  
  79. #endif /* QTICSamplePanel */